package com.flf.service.impl;

import java.util.List;

import com.flf.entity.Room;
import com.flf.mapper.RoomMapper;
import com.flf.service.RoomService;

public class RoomServiceImpl implements RoomService {

	private RoomMapper roomMapper;
	
	public Room getRoomById(Integer roomId) {
		return roomMapper.getRoomById(roomId);
	}

	public void insertRoom(Room room) {
		roomMapper.insertRoom(room);
			
	}

	public List<Room> listPageRoom(Room room){
		return roomMapper.listPageRoom(room);
	}

	public void updateRoom(Room room) {
		roomMapper.updateRoom(room);
	}

	public RoomMapper getRoomMapper() {
		return roomMapper;
	}

	public void setRoomMapper(RoomMapper roomMapper) {
		this.roomMapper = roomMapper;
	}

	public void deleteRoom(int roomId){
		roomMapper.deleteRoom(roomId);
	}

	public List<Room> listAllRoom() {
		return roomMapper.listAllRoom();
	}
	
}
